package com.sdcs.server.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.sdcs.server.daoimpl.AttendanceDaoImpl;
import com.sdcs.server.model.Attendance;

@Service
public class AttendanceService {
	@Autowired
	private AttendanceDaoImpl attendanceDaoImpl;
	
	public List<Attendance> getAll() {
		return attendanceDaoImpl.getAll();
	}

	public Attendance getObjectById(String id) {
		return attendanceDaoImpl.getObjectById(id);
	}

	public void save(Attendance object) {
		attendanceDaoImpl.save(object);
	}

	public void delete(String id) {
		attendanceDaoImpl.delete(id);
	}

}
